package com.wuyoucar.mapper;

import com.wuyoucar.entity.TBank;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/*
    查询用户绑定的银行卡
 */
@Component
@Mapper
public interface TBankMapper {
    //查询用户所有的银行卡
    List<TBank> selectAllCard(Integer userid);
    //绑定银行卡
    int bindCard(@Param("userid") Integer userid, @Param("bankcard") String bankcard,@Param("bankname")String bankname);
    //给用户打款
    int updateMoney(TBank bank);
    //解绑
    int delbankcard(String bankcard);
}
